/**
 * Package:com.goldcitynet.service;
 * Id: SceneService.java,$v 1.2 2008/05/05 10:21:54$ yangchuan Exp 
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.engine.service;

import com.afteryuan.engine.model.SceneInstance;

import java.util.List;

/**
 * Service
 * <p/>
 * <p><a href="SceneService.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">Author: yangchuan </a>
 * @version $Revision: 1.1.1.1 $
 */
public interface SceneInstanceService extends Service<SceneInstance> {

	public SceneInstance getInstanceByXY(int x, int y);
	
   /**
     * 按照点击频率查找最靠前的场景
     *
     * @param length 取得的场景数的最大值
     * @return 场景列表
     */
    List<SceneInstance> listByFrequency(Integer length);
    /**
     * 取得用户的默认场景
     * 如果用户设置了默认场景，则可以取得
     * @return
     */
    //SceneInstance getUserDefault(PublicUser publicUser);
}